@extends('admin.common.base-master')

@section('html-head')
    {{--<link href="{{url('/vendor/tyupload/control/css/zyUpload.css')}}" type="text/css" rel="stylesheet" />--}}
    {{--<link href="{{url('css/jquery.form.css')}}" type="text/css" rel="stylesheet" />--}}
    {{--<script src="{{url('/vendor/My97DatePicker/WdatePicker.js')}}"></script>--}}
    {{--<script src="{{url('/js/lib/jquery.form.js')}}"></script>--}}
@endsection

@section('html-body')
    <div id="content">
        <div id="cur-position">
            <span class="tit">职位管理</span>
            <a href="#">职位详情</a>
        </div>
        <!-- cur-position end -->

        <div class="gg-step2">

            <div class="list-wrap">
                <h2 class="head">
                    <span class="span1">职位详细信息</span>
                </h2>
                <!-- list-text-box start -->
                <div class="list-text-box">


                    <div class="list-text">
                        <label class="tit">用户手机：</label>
                        <div class="cont">
                            <p class="text">@if($thatPosition){{$thatPosition->phone}} @endif</p>
                        </div>
                    </div>

                    <div class="list-text">
                        <label class="tit">职位图片：</label>
                        <div class="cont">
                            <p class="text">
                                @if($thatPosition && count($thatPosition->position_img_urls) > 0)
                                    @foreach($thatPosition->position_img_urls as $thatPosition->position_img_url)
                                        <img src="{{$thatPosition->position_img_url}}" alt="" width="80px;">
                                    @endforeach
                                @endif
                            </p>
                        </div>
                    </div>

                    <div class="list-text">
                        <label class="tit">行业：</label>
                        <div class="cont">
                            <p class="text">@if($thatPosition){{$thatPosition->trade}} @endif</p>
                        </div>
                    </div>

                    <div class="list-text">
                        <label class="tit">任职类型：</label>
                        <div class="cont">
                            <p class="text">
                                @if($thatPosition->type == 0)
                                    长期工
                                @elseif($thatPosition->type ==1)
                                    临时工
                                @endif
                            </p>
                        </div>
                    </div>

                    <div class="list-text">
                        <label class="tit">职位：</label>
                        <div class="cont">
                            <p class="text">@if($thatPosition){{$thatPosition->job_type}} @endif</p>
                        </div>
                    </div>

                    <div class="list-text">
                        <label class="tit">招聘人数：</label>
                        <div class="cont">
                            <p class="text">@if($thatPosition){{$thatPosition->people_num}} @endif</p>
                        </div>
                    </div>

                    <div class="list-text">
                        <label class="tit">学历：</label>
                        <div class="cont">
                            <p class="text">@if($thatPosition){{$thatPosition->education}} @endif</p>
                        </div>
                    </div>

                    <div class="list-text">
                        <label class="tit">招聘开始时间：</label>
                        <div class="cont">
                            <p class="text">@if($thatPosition){{$thatPosition->start_time}} @endif</p>
                        </div>
                    </div>

                    <div class="list-text">
                        <label class="tit">招聘结束时间：</label>
                        <div class="cont">
                            <p class="text">@if($thatPosition){{$thatPosition->end_time}} @endif</p>
                        </div>
                    </div>

                    <div class="list-text">
                        <label class="tit">薪资类型：</label>
                        <div class="cont">
                            <p class="text">@if($thatPosition){{$thatPosition->salary_type}} @endif</p>
                        </div>
                    </div>

                    <div class="list-text">
                        <label class="tit">薪资金额：</label>
                        <div class="cont">
                            <p class="text">@if($thatPosition){{$thatPosition->salary_num}} @endif</p>
                        </div>
                    </div>

                    <div class="list-text">
                        <label class="tit">性别限制：</label>
                        <div class="cont">
                            <p class="text">
                                @if($thatPosition->sex == 0)
                                    不限
                                @elseif($thatPosition->sex == 1)
                                    男
                                @elseif($thatPosition->sex == 2)
                                    女
                                @endif
                            </p>
                        </div>
                    </div>

                    <div class="list-text">
                        <label class="tit">省份：</label>
                        <div class="cont">
                            <p class="text">@if($thatPosition){{$thatPosition->province}} @endif</p>
                        </div>
                    </div>

                    <div class="list-text">
                        <label class="tit">城市：</label>
                        <div class="cont">
                            <p class="text">@if($thatPosition){{$thatPosition->city}} @endif</p>
                        </div>
                    </div>

                    <div class="list-text">
                        <label class="tit">县（地区）：</label>
                        <div class="cont">
                            <p class="text">@if($thatPosition){{$thatPosition->area}} @endif</p>

                        </div>
                    </div>     <div class="list-text">
                        <label class="tit">镇（街道）：</label>
                        <div class="cont">
                            <p class="text">@if($thatPosition){{$thatPosition->town}} @endif</p>

                        </div>
                    </div>

                    <div class="list-text">
                        <label class="tit">详细地址：</label>
                        <div class="cont">
                            <p class="text">@if($thatPosition){{$thatPosition->address_detail}} @endif</p>

                        </div>
                    </div>

                    <div class="list-text">
                        <label class="tit">联系手机号码：</label>
                        <div class="cont">
                            <p class="text">@if($thatPosition){{$thatPosition->contact_phone}} @endif</p>

                        </div>
                    </div>

                    <div class="list-text">
                        <label class="tit">职位描述：</label>
                        <div class="cont">
                            <p class="text">@if($thatPosition){{$thatPosition->desc}} @endif</p>

                        </div>
                    </div>

                    <div class="list-text">
                        <label class="tit">是否置顶：</label>
                        <div class="cont">
                            <p class="text">
                                @if($thatPosition->set_top == 0)
                                    未置顶
                                @else
                                    已置顶
                                @endif
                            </p>

                        </div>
                    </div>

                    <div class="list-text">
                        <label class="tit">置顶小时数：</label>
                        <div class="cont">
                            <p class="text">@if($thatPosition){{$thatPosition->set_top_time}} @endif</p>
                        </div>
                    </div>

                    <div class="list-text">
                        <label class="tit">排序：</label>
                        <div class="cont">
                            <p class="text">@if($thatPosition){{$thatPosition->sort}} @endif</p>
                        </div>
                    </div>

                    <div class="list-text">
                        <label class="tit">职位状态：</label>
                        <div class="cont">
                            <p class="text">
                                @if($thatPosition-> state == 0)
                                    等待招聘
                                @else
                                    招聘中
                                @endif
                            </p>
                        </div>
                    </div>

                    <div class="list-text">
                        <label class="tit">创建时间：</label>
                        <div class="cont">
                            <p class="text">@if($thatPosition){{$thatPosition->created_at}} @endif</p>

                        </div>
                    </div>
                </div>
                <!-- list-text-box end -->
            </div>
        </div>
    </div>
@endsection

